/**
 * Copyright (C), 2019-2020, 宇信融汇
 * FileName: TranceCar
 * Author:   666
 * Date:     2020/6/28 22:02
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 666           修改时间           版本号              描述
 */
package c_005;

/**
 * @Classname TranceCar
 * @Description TODO
 * @Date 2020/6/28 22:02
 * @Created by 666
 */
public class TranceCar extends MotoVehicle {
    private int weight;

    public TranceCar(int weight) {
        this.weight = weight;
    }

    public TranceCar(int no, String brand, int weight) {
        super(no, brand);
        this.weight = weight;
    }

    @Override
    public int calcRent(int day) {
        return weight*day*50;
    }
}
